/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_medidaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression me_id_medida;
	public final StringExpression me_unidad_medida;
	
	public Tbv_medidaDetachedCriteria() {
		super(orm.Tbv_medida.class, orm.Tbv_medidaCriteria.class);
		me_id_medida = new IntegerExpression("me_id_medida", this.getDetachedCriteria());
		me_unidad_medida = new StringExpression("me_unidad_medida", this.getDetachedCriteria());
	}
	
	public Tbv_medidaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_medidaCriteria.class);
		me_id_medida = new IntegerExpression("me_id_medida", this.getDetachedCriteria());
		me_unidad_medida = new StringExpression("me_unidad_medida", this.getDetachedCriteria());
	}
	
	public Tbv_productoDetachedCriteria createTbv_productoCriteria() {
		return new Tbv_productoDetachedCriteria(createCriteria("ORM_Tbv_producto"));
	}
	
	public Tbv_medida uniqueTbv_medida(PersistentSession session) {
		return (Tbv_medida) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_medida[] listTbv_medida(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_medida[]) list.toArray(new Tbv_medida[list.size()]);
	}
}

